home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global pippo, dove
- set pippo to the pathName
- set dove to EMPTY
- set zDrive to charToNum("Z")
- set aDrive to charToNum("D")
- repeat with i = aDrive to zDrive
- set drivePath to numToChar(i) & ":\"
- repeat with x = 1 to 50
- set curFile to getNthFileNameInFolder(drivePath, x)
- if curFile = EMPTY then
- exit repeat
- end if
- if curFile = "Fracent" then
- set dove to drivePath
- exit repeat
- end if
- end repeat
- if dove <> EMPTY then
- exit repeat
- end if
- end repeat
- if dove = EMPTY then
- alert("Non riesco a trovare il CD-Rom")
- end if
- go(1, dove & "film\menu")
- end
-